package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbAlertLog1Mapper;
import com.ruoyi.system.domain.TbAlertLog1;
import com.ruoyi.system.service.ITbAlertLog1Service;

/**
 * 告警日志表Service业务层处理
 * 
 * @author 王佳林
 * @date 2025-02-20
 */
@Service
public class TbAlertLog1ServiceImpl implements ITbAlertLog1Service 
{
    @Autowired
    private TbAlertLog1Mapper tbAlertLog1Mapper;

    /**
     * 查询告警日志表
     * 
     * @param alertId 告警日志表主键
     * @return 告警日志表
     */
    @Override
    public TbAlertLog1 selectTbAlertLog1ByAlertId(Long alertId)
    {
        return tbAlertLog1Mapper.selectTbAlertLog1ByAlertId(alertId);
    }

    /**
     * 查询告警日志表列表
     * 
     * @param tbAlertLog1 告警日志表
     * @return 告警日志表
     */
    @Override
    public List<TbAlertLog1> selectTbAlertLog1List(TbAlertLog1 tbAlertLog1)
    {
        return tbAlertLog1Mapper.selectTbAlertLog1List(tbAlertLog1);
    }

    /**
     * 新增告警日志表
     * 
     * @param tbAlertLog1 告警日志表
     * @return 结果
     */
    @Override
    public int insertTbAlertLog1(TbAlertLog1 tbAlertLog1)
    {
        return tbAlertLog1Mapper.insertTbAlertLog1(tbAlertLog1);
    }

    /**
     * 修改告警日志表
     * 
     * @param tbAlertLog1 告警日志表
     * @return 结果
     */
    @Override
    public int updateTbAlertLog1(TbAlertLog1 tbAlertLog1)
    {
        return tbAlertLog1Mapper.updateTbAlertLog1(tbAlertLog1);
    }

    /**
     * 批量删除告警日志表
     * 
     * @param alertIds 需要删除的告警日志表主键
     * @return 结果
     */
    @Override
    public int deleteTbAlertLog1ByAlertIds(Long[] alertIds)
    {
        return tbAlertLog1Mapper.deleteTbAlertLog1ByAlertIds(alertIds);
    }

    /**
     * 删除告警日志表信息
     * 
     * @param alertId 告警日志表主键
     * @return 结果
     */
    @Override
    public int deleteTbAlertLog1ByAlertId(Long alertId)
    {
        return tbAlertLog1Mapper.deleteTbAlertLog1ByAlertId(alertId);
    }
}
